/*
 * testserver.h
 *
 *  Created on: Apr 20, 2011
 *      Author: Alan Mattila
 */

#ifndef TESTSERVER_H_
#define TESTSERVER_H_

#include <QtGui>
#include <QtCore>

#include <QMainWindow>
#include <QPushButton>

#include "../../../checkers/Checkers.h"
#include "../../NetworkServer.h"


class testserver : public QMainWindow
{
	Q_OBJECT

public:
	testserver(QWidget *parent);
	~testserver();

private:
	NetworkServer *server;
	Checkers *checkers;

	QTcpSocket *tcpSocket;
	QTcpServer *tcpServer;
	QPushButton *closeButton;
	QPushButton *startButton;
	QPushButton *moveButton;

	void initWindow(void);

private slots:
	void StartHosting(void);
	void Close(void);
	void Error(void);
	void Disconnected(void);
	void BytesWritten(void);
	void TestMove(void);
};



#endif /* TESTSERVER_H_ */
